package colin.spring.boot.sample.rmi.service.impl;

import org.springframework.stereotype.Service;

import colin.spring.boot.sample.rmi.bean.RMIUserBean;
import colin.spring.boot.sample.rmi.service.RMIUserManageService;

@Service
public class RMIUserManageServiceImpl implements RMIUserManageService {

	@Override
	public RMIUserBean getUserInfo(String username) {
		RMIUserBean userBean = new RMIUserBean();
		switch (username) {
		case "colin":
			userBean.setUsername("colin");
			userBean.setAddress("中国青岛");
			userBean.setAge(25);
			userBean.setSex("男");
			break;
		default:
			userBean.setUsername("joker");
			userBean.setAddress("中国北京");
			userBean.setAge(25);
			userBean.setSex("男");
			break;
		}
		return userBean;
	}

}
